
import { axios } from '@/utils/request'
export function missLessonList(params) {
  return axios({
    url: '/school/miss-classes',
    method: 'post',
    data: params
  })
}

export function missClassStudentsList(params,id) {
  return axios({
    url: '/school/classes/'+id+'/get-wait-remedial-students',
    method: 'post',
    data: params
  })
}

export function changeType(params,id) {
    return axios({
      url: '/school/miss-classes/'+id+'/mark_already_remedial',
      method: 'post',
      data: params
    })
  }

  export function editMissClassesHour(data, id) {
    //\修改补课课时
    return axios({
      url: '/school/call-records/' + id + '/edit-remarks',
      method: 'post',
      data: data
    })
  }
  export function lookMissClassesInfo(id) {
    //查看补课详情
    return axios({
      url: '/school/miss-classes/'+id+'/get-remedial-info',
      method: 'post',
    })
  }
  
  export function changeDeductionTime(params,id) {
    return axios({
      url: '/school/miss-classes/'+id+'/edit-hour',
      method: 'post',
      data: params
    })
  }

  export function exportMissClass(school_id){
    return axios({
      url: '/school/miss-classes/export?school_id='+school_id,
      method: 'get',
    })
  }